package cn.wit.test;

public abstract class Shape {
	private double centerX;
	private double centerY;

	public double getCenterX() {
		return centerX;
	}

	public void setCenterX(double centerX) {
		this.centerX = centerX;
	}

	public double getCenterY() {
		return centerY;
	}

	public void setCenterY(double centerY) {
		this.centerY = centerY;
	}

	/**
	 * 求面积
	 * 抽象方法，只有方法，没有实现
	 * 子类去实现
	 * @return
	 */
	
	public abstract double getArea();

}
